package com.bit.demo1;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

public class Demo11 {
    public int a1 = 10;
    public int a2 = 20;
    private static int a3 = 30;
    public Demo11(){
        System.out.println("1111外部类的构造方法");
    }
    public Demo11(int x){
        System.out.println("1111外部类的构造方法====x");
    }
     class Demo12{
        public int a4 = 40;
        public int a5 = 50;
        //private static int a6 = 60;
        public Demo12(){
            System.out.println("2222内部类的构造方法");
        }
         public Demo12(int x){
             System.out.println("2222内部类的构造方法====x");
         }
        public void doClass(){
            Demo11 demo11 = new Demo11();
            System.out.println(demo11.a1);
            System.out.println(demo11.a2);
            System.out.println(a3);
            System.out.println(this.a4);
            System.out.println(a5);
           // System.out.println(a6);
        }
    }

    public static void main(String[] args) {


        int x =10;
        Demo11 demo11 = new Demo11();
        System.out.println("=======");
        Demo11.Demo12 demo12 = demo11.new Demo12();
//      System.out.println("=========");
//      Demo11.Demo12 demo13 = new Demo11().new Demo12();
//      demo13.doClass();
//      System.out.println(x);
        //Demo11.Demo12 demo12 = new Demo11().new Demo12();
        demo12.doClass();
    }
}
